package com.saunter.utils;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

import java.util.List;

@Configuration
@PropertySource(value = {"classpath:config/config.properties"}, encoding = "UTF-8")
@ConfigurationProperties
public class ConfigProperties {
    private String user_default_password;
    private String encrypt_key;
    private boolean show_user_job;
    private List<String> favicon_dir;
    private List<String> cors_origin;

    public String getUser_default_password() {
        return this.user_default_password;
    }
    public void setUser_default_password(String user_default_password) {
        this.user_default_password = user_default_password;
    }

    public String getEncrypt_key() {
        return this.encrypt_key;
    }
    public void setEncrypt_key(String encrypt_key) {
        this.encrypt_key = encrypt_key;
    }

    public void setShow_user_job(boolean show_user_job) {
        this.show_user_job = show_user_job;
    }
    public boolean isShow_user_job() {
        return this.show_user_job;
    }

    public void setFavicon_dir(List<String> favicon_dir) {
        this.favicon_dir = favicon_dir;
    }
    public List<String> getFavicon_dir() {
        return favicon_dir;
    }

    public void setCors_origin(List<String> cors_origin) {
        this.cors_origin = cors_origin;
    }
    public List<String> getCors_origin() {
        return cors_origin;
    }
}
